/**
 * Configure your Gatsby site with this file.
 *
 * See: https://www.gatsbyjs.com/docs/gatsby-config/
 */

module.exports = {
  /* Your site config here */
  // 网站的元数据
  siteMetadata: {
    title: 'tom',
    author: 'jerry'
  },
  plugins: [
    {
      resolve: 'gatsby-source-filesystem',
      options: {
        name: 'json', // 资源属于哪个类
        path: `${__dirname}/json/`
      }
    },
    'gatsby-transformer-json',
    'gatsby-plugin-sharp',
    'gatsby-transformer-sharp',
    {
      resolve: 'gatsby-source-list',
      // https://api.github.com
      options: {apiUrl: 'https://www.fastmock.site/mock/5586d2ae69a56f5099340a4879428c60/imock/api'}
    },
    {
      resolve: 'gatsby-source-list-article',
      // https://api.github.com
      options: {apiUrl: 'https://www.fastmock.site/mock/5586d2ae69a56f5099340a4879428c60/imock/api'}
    },
    'gatsby-article-detail',
    // 'gatsby-disable-404'
  ],
}
